package cn.dc406.labc406mgr.mapper;


import cn.dc406.labc406mgr.entity.Itemdetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface ItemdetailsWapper {
    @Select("select * from itemdetails where name like'%${name}%' LIMIT 0,1")
    Itemdetails selectbyburryName(String name);

    @Update("update itemdetails set name=#{name},price=#{price},usement=#{usement},method=#{method},attention=#{attention} where id=#{id}")
    Boolean Updatedetail(Itemdetails itemdetails);
}
